package com.situ.spring.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.situ.spring.dao.ICourseDao;
import com.situ.spring.entity.Course;
import com.situ.spring.service.ICourseService;

/*
<bean name="courseService" class="com.situ.spring.service.impl.CourseServiceImpl">
</bean>
*/
@Service("courseService")
public class CourseServiceImpl implements ICourseService{
	
	//<property name="courseDao" ref="courseDao"/>
	@Resource(name = "courseDao")
	private ICourseDao courseDao;

	@Override
	public List<Course> findAll() {
		System.out.println("CourseServiceImpl.findAll()");
		return courseDao.findAll();
	}
}
